package com.st.app.test.controller;

import com.st.app.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author future
 * @Desc： *
 * @date 11/25/24
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/list")
    public String list()
    {
        System.out.println("---------------------");
        userService.getUserById(222L);
        return userService.getAllUser().toString();

    }



}
